/**
 * @filename:LecturerDao Lecturer
 * @project constract  V1.0
 * Copyright(c) 2018 gong Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.repository;

import java.util.List;

import com.znufe.exam.domain.lecturer.LecturerResponseObject;
import com.znufe.exam.viewmodel.admin.lecturer.LecturerPageRequestVM;
import org.apache.ibatis.annotations.Mapper;
import com.znufe.exam.domain.Lecturer;

/**   
 *  
 * @Description:  讲师表——DAO
 * @Author:       gong   
 * @CreateDate:   Lecturer
 * @Version:      V1.0
 *    
 */
@Mapper

public interface LecturerMapper extends BaseMapper<Lecturer> {

	@Override
	Lecturer selectByPrimaryKey(Integer id);

	@Override
	int deleteByPrimaryKey(Integer id);

	@Override
	int insertSelective(Lecturer lecturer);

	@Override
	int updateByPrimaryKeySelective(Lecturer lecturer);
	
	List<Lecturer> queryLecturerList(Lecturer lecturer);

	List<LecturerResponseObject> getLecturerListById(List<Integer> ids);

	Lecturer getLecturerByName(String lecturerName);

	List<Lecturer> page(LecturerPageRequestVM requestVM);

	int deleteAllLecturerByTitle(Integer titleId);

}
